<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template us_dst_rules</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#doxygen.date_time_reference.dst__rules_8hpp" title="Header &lt;boost/date_time/dst_rules.hpp&gt;">
<link rel="prev" href="classboost_1_1date__time_1_1null__dst__rules.html" title="Class template null_dst_rules">
<link rel="next" href="classboost_1_1date__time_1_1day__calc__dst__rule.html" title="Class template day_calc_dst_rule">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1date__time_1_1null__dst__rules.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.dst__rules_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1day__calc__dst__rule.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template us_dst_rules</span></h2>
<p>boost::date_time::us_dst_rules — Depricated: Class to calculate dst boundaries for US time zones. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#doxygen.date_time_reference.dst__rules_8hpp" title="Header &lt;boost/date_time/dst_rules.hpp&gt;">boost/date_time/dst_rules.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> date_type_<span class="special">,</span> <span class="keyword">typename</span> time_duration_type_<span class="special">,</span> 
         <span class="keyword">unsigned</span> <span class="keyword">int</span> dst_start_offset_minutes <span class="special">=</span> <span class="number">120</span><span class="special">,</span> 
         <span class="keyword">short</span> dst_length_minutes <span class="special">=</span> <span class="number">60</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html" title="Class template us_dst_rules">us_dst_rules</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">time_duration_type_</span>                             <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1ac680c39c17c5bd521ddf9a58086e35e6"></a><span class="identifier">time_duration_type</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">date_type_</span>                                      <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a407226e87c6826e920121766b1accf06"></a><span class="identifier">date_type</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">year_type</span>                            <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1ac95b0fade1f38be33b7eb7c7edbba51a"></a><span class="identifier">year_type</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">calendar_type</span>                        <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a0de5712b18aaedc2646eb43ec2a5b508"></a><span class="identifier">calendar_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1last__kday__of__month.html" title="Class template last_kday_of_month">date_time::last_kday_of_month</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>      <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a595618dd3cc7fec5e6dcce408fe91f64"></a><span class="identifier">lkday</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1first__kday__of__month.html" title="Class template first_kday_of_month">date_time::first_kday_of_month</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>     <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a36f2703ad742411de8a1706e3aeb20db"></a><span class="identifier">fkday</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1nth__kday__of__month.html" title="Class template nth_kday_of_month">date_time::nth_kday_of_month</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>       <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1ab3922b5081904d435abc2ca086dc62e0"></a><span class="identifier">nkday</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1dst__calculator.html" title="Class template dst_calculator">dst_calculator</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">time_duration_type</span> <span class="special">&gt;</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a60b0101b1536d3ce6e06b1be9ad460de"></a><span class="identifier">dstcalc</span><span class="special">;</span>           

  <span class="comment">// <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html#id-1_3_11_15_3_23_2_1_4_11-bb">public static functions</a></span>
  <span class="keyword">static</span> <span class="identifier">time_is_dst_result</span> 
  <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html#doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a79b7dfc41d346b83e6b1ded391e8ed9b"><span class="identifier">local_is_dst</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">bool</span> <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html#doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1aa3b2c64e6c3ec2e209eb0870f89e528b"><span class="identifier">is_dst_boundary_day</span></a><span class="special">(</span><span class="identifier">date_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">date_type</span> <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html#doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1abd00878c5102d3b04d4ad5409f7593b5"><span class="identifier">local_dst_start_day</span></a><span class="special">(</span><span class="identifier">year_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">date_type</span> <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html#doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a5fdec78ec54c62c16180a4a9915f0a3a"><span class="identifier">local_dst_end_day</span></a><span class="special">(</span><span class="identifier">year_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a class="link" href="classboost_1_1date__time_1_1us__dst__rules.html#doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a30ef4d1ed38071cf08e81ff41b5bd5d4"><span class="identifier">dst_offset</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.11.15.3.23.7.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.11.15.3.23.7.4.2"></a><h3>
<a name="id-1_3_11_15_3_23_2_1_4_11-bb"></a><code class="computeroutput">us_dst_rules</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_is_dst_result</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a79b7dfc41d346b83e6b1ded391e8ed9b"></a><span class="identifier">local_is_dst</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span> d<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span> td<span class="special">)</span><span class="special">;</span></pre>Calculates if the given local time is dst or not. <p>Determines if the time is really in DST or not. Also checks for invalid and ambiguous. 
</p>
</li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="keyword">bool</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1aa3b2c64e6c3ec2e209eb0870f89e528b"></a><span class="identifier">is_dst_boundary_day</span><span class="special">(</span><span class="identifier">date_type</span> d<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">date_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1abd00878c5102d3b04d4ad5409f7593b5"></a><span class="identifier">local_dst_start_day</span><span class="special">(</span><span class="identifier">year_type</span> year<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">date_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a5fdec78ec54c62c16180a4a9915f0a3a"></a><span class="identifier">local_dst_end_day</span><span class="special">(</span><span class="identifier">year_type</span> year<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1us__dst__rules_1a30ef4d1ed38071cf08e81ff41b5bd5d4"></a><span class="identifier">dst_offset</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1date__time_1_1null__dst__rules.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.dst__rules_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1day__calc__dst__rule.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
